home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / ddj0492.zip / DFLT11.ZIP / CONFIG.H < prev    next >
Text File  |  1992-01-30  |  2KB  |  50 lines

  1. /* ---------------- config.h -------------- */
  2.  
  3. #ifndef CONFIG_H
  4. #define CONFIG_H
  5.  
  6. enum colortypes {
  7.     STD_COLOR,
  8.     SELECT_COLOR,
  9.     FRAME_COLOR,
  10.     HILITE_COLOR
  11. };
  12.  
  13. enum grounds { FG, BG };
  14.  
  15. /* ----------- configuration parameters ----------- */
  16. typedef struct config {
  17.     char version[sizeof VERSION];
  18.     char mono;         /* 0=color, 1=mono, 2=reverse mono    */
  19.     BOOL InsertMode;   /* Editor insert mode                 */
  20.     int Tabs;          /* Editor tab stops                   */
  21.     BOOL WordWrap;     /* True to word wrap editor           */
  22. #ifdef INCLUDE_WINDOWOPTIONS
  23.     BOOL Border;       /* True for application window border */
  24.     BOOL Title;        /* True for application window title  */
  25.     BOOL StatusBar;    /* True for appl'n window status bar  */
  26.     BOOL Texture;      /* True for textured appl window      */
  27. #endif
  28.     int ScreenLines;   /* Number of screen lines (25/43/50)  */
  29.     char PrinterPort[5];
  30.     int LinesPage;     /* Lines per printer page             */
  31.     int CharsLine;       /* Characters per printer line        */
  32.     int LeftMargin;       /* Printer margins                    */
  33.     int RightMargin;
  34.     int TopMargin;
  35.     int BottomMargin;
  36.     unsigned char clr[CLASSCOUNT] [4] [2]; /* Colors         */
  37. } CONFIG;
  38.  
  39. extern CONFIG cfg;
  40. extern unsigned char color[CLASSCOUNT] [4] [2];
  41. extern unsigned char bw[CLASSCOUNT] [4] [2];
  42. extern unsigned char reverse[CLASSCOUNT] [4] [2];
  43.  
  44. BOOL LoadConfig(void);
  45. void SaveConfig(void);
  46. FILE *OpenConfig(char *);
  47.  
  48. #endif
  49.  
  50.